<template>
    <div>
    <button @click="add">按钮1</button>
    <button @click="add2">按钮2</button>
     </div>
    </template>
    <script>
    import{axiosApi} from './js/api'
    export default {
    data(){
    return{
    }
    },
    created(){
    },
    computed:{
    },
    methods:{
      add(){
        axiosApi.get1().then((val)=>{
          console.log(val);
        })
      },
      add2(){
        axiosApi.post1(this.form).then((val)=>{
          console.log(val);
        })
      }
    },
    }
    </script>
    <style lang='less' scoped>
    </style>
    